package com.lph.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lph.dao.FilesDaoI;
import com.lph.model.Files;
import com.lph.model.Menber;
import com.lph.model.Msg;
@Service
public class FilesService implements BaseServiceI<Files>{
	
	@Autowired
	private FilesDaoI fdi;
	
	public List<Files> find(Files t) {
		List<Files> list=fdi.find(t);
		return list;
	}

	public Files get(Files t) {
		List<Files> list=this.find(t);
		return list.size()>0?list.get(0):null;
	}

	public Msg insert(Files t) {
		int i = fdi.insert(t);
		Msg f = new Msg("保存失败", false);
		if(i>0){
			f.setMsg("保存成功");
			f.setIs(true);
		}
		return f;
	}

	public Msg batchInsert(String objs) {
		return null;
	}

	public Msg edit(Files t) {
		// TODO Auto-generated method stub
		return null;
	}

	

	public Msg batchRemove(String ids) {
		// TODO Auto-generated method stub
		return null;
	}

	public Msg remove(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

}
